package net.bo;

import net.ko.kobject.KObject;
import net.ko.persistence.annotation.Entity;
import net.ko.persistence.annotation.Table;
import net.ko.kobject.KListObject;


/**
* Classe KTypedemande
*/
@SuppressWarnings("serial")
@Entity
@Table(name="typedemande")
public class KTypedemande extends KObject {
	private String libelle;
	private KListObject<KDemande> demandes;

	public KTypedemande() {
		super();
		hasMany(KDemande.class);
	}
	/**
	 * return the value of libelle
	 * @return libelle
	 */
	public String getLibelle(){
		return this.libelle;
	}
	/**
	 * return the value of demandes
	 * @return demandes
	 */
	public KListObject<KDemande> getDemandes(){
		return this.demandes;
	}

	/**
	 * set the value of libelle
	 * @param aLibelle
	 */
	public void setLibelle(String aLibelle){
		this.libelle=aLibelle;
	}
	/**
	 * set the value of demandes
	 * @param aDemandes
	 */
	public void setDemandes(KListObject<KDemande> aDemandes){
		this.demandes=aDemandes;
	}
	@Override
	public String toString() {
		return ""+libelle;
	}
}